import request from '../utils/request';

export function query() {
  return request('/api/users');
}

export const mockReq = ()=>{
  return request('/test/list');
}

export const cnodeReq = ()=>{
  return request('/cnode/topics');
}

export const Timeout = ()=>{
  // 生成器函数的call必须接受一个promise
  return new Promise((resolve,reject)=>{
    setTimeout(() => {
      resolve({
        msg: "延时器结束"
      })
    }, 2000);
  })
}
